package com.intelligent.system.auth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;

@Data
@ApiModel(description = "角色菜单信息（包含选中状态）")
public class MenuWithRoleDTO {
    /**
     * 菜单ID
     */
    @ApiModelProperty(value = "菜单ID", example = "1")
    private Long menuId;

    /**
     * 父菜单ID
     */
    @ApiModelProperty(value = "父菜单ID", example = "0")
    private Long parentId;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称", example = "系统管理")
    private String menuName;

    /**
     * 菜单URL
     */
    @ApiModelProperty(value = "菜单URL", example = "/system")
    private String url;

    /**
     * 菜单图标
     */
    @ApiModelProperty(value = "菜单图标", example = "setting")
    private String icon;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序", example = "1")
    private Integer orderNum;

    /**
     * 是否被选中（该角色是否拥有此菜单权限）
     */
    @ApiModelProperty(value = "是否被选中（该角色是否拥有此菜单权限）", example = "true")
    private Boolean selected;

    /**
     * 子菜单列表
     */
    @ApiModelProperty(value = "子菜单列表")
    private List<MenuWithRoleDTO> children;
} 